﻿using Microsoft.AspNetCore.Mvc;
using MVC.Models;

namespace MVC.Controllers
{
    [Route("[controller]/[action]")]
    public class UserController : Controller
    {
        public IActionResult Register()
        {
            return View();
        }

        [HttpPost]
        public IActionResult Register(
            [ModelBinder] UserInfo userInfo)
        {

            if (ModelState.IsValid)
            {
            }

            return View();
        }
    }
}